<script setup>
import { onLaunch } from "@dcloudio/uni-app";
import { getTitleTop, getWXStatusHeight } from "./utils/util";
import {proxy} from "./api/apiList";
import {ref} from  'vue'

onLaunch(() => {
  getTitleTop()
  getWXStatusHeight()
  getProxy()
});

// 获取分享标题
const p = ref('')
const getProxy = async () => {
  const res = await proxy('title')
  if (res.code == 200) {
    p.value = res.msg
    uni.setStorageSync('shareTitle', p.value)
  }
}



</script>

<style lang="scss">
@import "nutui-uniapp/styles/index.scss";

page {
  background-color: #f6f6f6;
}

uni-rich-text img {
  max-width: 100% !important;
}

uni-page-body,
html,
body {
  height: 100%;
}

/*每个页面公共css */

</style>
